package io.github.biezhi.elves.model;

import lombok.Data;
import io.github.biezhi.elves.utils.StringUtils;

/**
 * 投标信息网接口返回公告列表结果数据结构
 *
 */
@Data
public class BiddingDetailApi {
	//标题
	private String title = "";
	//
	private String dl = "";
	//
	private String yz = "";
	//发布日期
	private String pubdate = "";
	//发布日期
	private String pubdate1 = "";
	//id
	private Integer id = 0;
	//描述
	private String des = "";
	//信息来源
	private String fromWeb = "";
	//公告内容详情链接
	private String detailUrl = "";
	//
	private String href = "";
	
	public String getDetailUrl() {
		String detailUrl = "";
		if (!StringUtils.isNullOrEmpty(pubdate1) && id > 0) {
//			detailUrl = "http://show.job592.com/zb/" + this.pubdate1 + "_" + id + ".html";
			detailUrl = "http://my.zbyjw.cn/my/myzb_show.action?id=" + id;
			this.detailUrl = detailUrl;
		}
		return this.detailUrl;
	}
}